package com.dljd.javase.t15.exmpale2;

import com.dljd.javase.t7.Person;

import java.io.Serializable;

public  class Student {
    public  String name;
    public  int age;
    public  String num;
    public  String jiguan;

    @JSONIgnore
    public  boolean isDangyuan;

    @JSONIgnore
    public  String tel;

    @JSONIgnore
    public  String jiazhang;


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }

    public String getJiguan() {
        return jiguan;
    }

    public void setJiguan(String jiguan) {
        this.jiguan = jiguan;
    }

    public boolean isDangyuan() {
        return isDangyuan;
    }

    public void setDangyuan(boolean dangyuan) {
        isDangyuan = dangyuan;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getJiazhang() {
        return jiazhang;
    }

    public void setJiazhang(String jiazhang) {
        this.jiazhang = jiazhang;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", num='" + num + '\'' +
                ", jiguan='" + jiguan + '\'' +
                ", isDangyuan=" + isDangyuan +
                ", tel='" + tel + '\'' +
                ", jiazhang='" + jiazhang + '\'' +
                '}';
    }

    public Student() {
    }

    public Student(String name, int age, String num, String jiguan, boolean isDangyuan, String tel, String jiazhang) {
        this.name = name;
        this.age = age;
        this.num = num;
        this.jiguan = jiguan;
        this.isDangyuan = isDangyuan;
        this.tel = tel;
        this.jiazhang = jiazhang;
    }
}